﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Frame.Lib.Core.Cache
{
    public abstract class CacheLoaderBase
    {
        public Action<object> LoadComplete
        {
            get;
            set;
        }

        public void Update()
        {
            Thread thread = new Thread(() =>
            {
                LoadData();
            });

            thread.IsBackground = true;
            thread.Start();
        }

        public abstract void LoadData();
    }
}
